import { IRecieve } from "./Reciever";

export interface ICommand {
  execute(): any;
}

class Commander implements ICommand {
  constructor(reciever: any) {
    this.reciever = reciever;
  }
  public reciever: IRecieve;
  // 执行命令
  public execute() {
    this.reciever.refresh();
  }
}

export default Commander